import React, { Component } from 'react';
import IceContainer from '@icedesign/container';
import { Search, Grid } from '@icedesign/base';
import ArticleList from './ArticleList';
import Filter from './Filter';

import axios from 'axios';

const { Row, Col } = Grid;


export default class TextSearchList extends Component {
  static displayName = 'TextSearchList';

  constructor(props) {
    // console.log("兄弟",props.TextSources)
    super(props);
    
    this.state = {
      // machineCode:''
      textData:[],
    };
  }

  componentDidMount() {
  }

  componentWillReceiveProps(nextProps){
    this.setState({
      textData:nextProps.TextSources
    })
    console.log("TL",nextProps.TextSources);
  }

  // componentWillReceiveProps(){
  //   this.setState({
  //     textData:this.props.TextGetListChange()
  //   })
  // }

  render() {
    return (
      <div className="text-search-list">
        <ArticleList dataSource={this.state.textData} />
      </div>
    );
  }
}
